package net.googlecode.garzha.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: Valera
 * Date: 30.03.11
 * Time: 13:57
 */
public class Boss extends Person {
    /**
     * Constructor of class Director.
     *
     * @param firstName Firstname of the person.
     * @param lastName  Lastname of the person.
     * @param age       Age of the person.
     * @param rate      Rate of the person.
     * @param bonusAmt  Bonus amount of the person.
     */
    public Boss(final String firstName, final String lastName,
                final int age, final BigDecimal rate,
                final BigDecimal bonusAmt) {
        super(firstName, lastName, age, rate, bonusAmt);
    }

    /**
     * Override method for comfortable output.
     *
     * @return Comfortable presentation of object of the class.
     */
    public String toString() {
        return "Boss >> " + getLastName() + " " + getFirstName()
                + ",age:" + getAge();
    }
}
